{% extends "base.html" %} {%- block styles %} {{ super() }}
<link href="/static/css/common.css" rel="stylesheet" type="text/css" /> {% endblock styles -%} {% block title %}中传放心传-首页{% endblock %} {% block head %}{% endblock %} {% block body %}
<div class="file_container upload_body">
    <h2 class="file_h2 upload_h2"><b>Upload files</b></h2>
    <p class="file_p">
        <form action="/file/upload" method="post" enctype="multipart/form-data" class="file_form">
            <label class="upload-btn" for="file">Select File</label>
            <input type="file" id="file" name="file" accept=".doc, .docx, .ppt, .pptx, .xls, .xlsx, .pdf, .png, .jpg, .jpeg, .gif">
            <p>{{ form.csrf_token }}</p>
            <!-- CSRF令牌 -->
            <p class="file_p">
                <input type="submit" value="Upload">
            </p>
        </form>
    </p>
</div>
{% endblock %}